package com.simon.app.october.modules.sys.service;

import com.simon.app.october.common.utils.PageUtil;
import com.simon.app.october.common.utils.QueryPage;
import com.simon.app.october.modules.sys.entity.SysUserEntity;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * 系统用户
 * */
public interface SysUserService {

    /**
     * 根据username查询用户
     * */
    public SysUserEntity findByUsername(String username);

    public SysUserEntity findByToken(String token);

    public SysUserEntity findById(Long id);

    public List<Long> getAllMenuId(Long userId);

    public PageUtil getPage(QueryPage params);

    public void save(SysUserEntity userEntity);

    public void update(SysUserEntity userEntity);

    public void delete(List<Long> userId);
}
